package com.shopping.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import com.shopping.commons.response.DataGradResp;
import com.shopping.commons.response.MessageResp;
import com.shopping.commons.service.CommonsService;
import com.shopping.model.ShopCar;
import com.shopping.param.ShopCarParam;
import com.shopping.response.UserResp;

public interface IShopCarService extends CommonsService<ShopCar>{

	public DataGradResp<ShopCar> select(ShopCarParam param);

	/**
	 * 前台增加购物车商品
	 * @param commid
	 * @return
	 */
	public MessageResp add(HttpServletResponse response,HttpServletRequest request,UserResp user,Integer commid);

	public ModelAndView toShopCar(HttpServletRequest request,HttpServletResponse response, UserResp user);
}
